/*
 * @Author: your name
 * @Date: 2020-09-22 17:23:28
 * @LastEditTime: 2020-10-10 14:46:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_admin\src\main.js
 */
// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import VCharts from 'v-charts'
import App from './App.vue'
import echarts from 'echarts'
import router from './router'
import store from './store/'
import i18n from './locales'
import '@/assets/css/style.less'
import { VueAxios } from './utils/request'
import 'ant-design-vue/dist/antd.css'
import ProLayout, { PageHeaderWrapper } from '@ant-design-vue/pro-layout'
import themePluginConfig from '../config/themePluginConfig'

// import './mock'

import bootstrap from './core/bootstrap'

import './core/lazy_use'
import './permission' // permission control
import './utils/filter' // global filter
import './global.less' // global style
import '@/assets/iconfont/iconfont.css'
Vue.config.productionTip = false

// mount axios to `Vue.$http` and `this.$http`

Vue.use(VCharts)
Vue.use(VueAxios)
Vue.prototype.$echarts = echarts
// Vue.use(Antd)
Vue.component('pro-layout', ProLayout)
Vue.component('page-container', PageHeaderWrapper)
Vue.component('page-header-wrapper', PageHeaderWrapper)

window.umi_plugin_ant_themeVar = themePluginConfig.theme

new Vue({
  router,
  store,
  i18n,
  // init localstorage, vuex
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
